import { LOGIN } from '../actionTypes'

const initValue = {
  token: ''
}
export default function login (state = initValue, { type, payload }) {
  if (type === LOGIN) {
    return payload
  }
  return state
}
